home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!falstaff
- From: falstaff@xs4all.nl (Falstaff)
- Newsgroups: comp.lang.c
- Subject: Re: help:what is wrong with this code?
- Date: 15 Apr 1996 21:51:50 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4kugdm$is3@news.xs4all.nl>
- References: <4krmdu$t3h@brahms.udel.edu>
- NNTP-Posting-Host: xs1.xs4all.nl
- X-Newsreader: NN version 6.5.0 #666 (NOV)
-
- yuehong@brahms.udel.edu (Yue-hong Zheng) writes:
-
- >#include <stdio.h>
-
- >void quicksort(int[],int,int );
-
- >void swap(int*,int*);
-
- >main () {
- >int k;
- >int a[]={1,3,4,2,43,23,5,6,87,92,21};
- >quicksort(a,0,10);
- >for (k=0;k<=10;k++) {
- >printf("%d\n",a[k]);
- >}
- >return 0;
- >}
- [...]
-
- What's wrong?
- 1. You forgot to indent your code;
- 2. We don't do your homework here.
-
- Frank
- --
- Support the comp.arch.homebrew* group for home-designed digital hardware
- The famous GIICM now on line: http://www.xs4all.nl/~falstaff/GIICM.html
- ------------------------------------------------------------------------
- Frank A. Vorstenbosch +31-(70)-355 5241 falstaff@xs4all.nl
-